Skip to content

Conversation

@msanatan
Copy link
Contributor

@msanatan msanatan commented Aug 2, 2025

Ref: https://discord.com/channels/1394050967917428756/1396128287771590757/1401040388541648998

Prevents the log spam, slightly more efficient check when the Window is back in focus.

This change was added very recently in #175, maybe check with the author first before merging this in, it continues to work for my connection but I'm not sure if this unwittingly breaks something. Feels safe so far


Important

Optimizes OnFocus() in UnityMcpEditorWindow.cs to prevent log spam by validating selectedClientIndex before configuration checks.

This description was created by Ellipsis for 2b69eb1. You can customize this summary. It will automatically update as commits are pushed.

@msanatan msanatan requested a review from Scriptwonder August 2, 2025 03:22
@msanatan msanatan self-assigned this Aug 2, 2025
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed everything up to 2b69eb1 in 32 seconds. Click for details.
  • Reviewed 18 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. UnityMcpBridge/Editor/Windows/UnityMcpEditorWindow.cs:59
  • Draft comment:
    OnFocus now checks only the selected client instead of iterating over all clients. Confirm this change meets the intended behavior and that skipping other clients won’t cause issues. Consider adding a comment to clarify the rationale.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 20% <= threshold 50% The comment asks the PR author to confirm their intention and ensure the behavior is intended, which violates the rules. However, it also suggests adding a comment to clarify the rationale, which is a valid suggestion. Overall, the comment is mostly about confirming intention, which is not allowed.

Workflow ID: wflow_SpnVqBOqL0yYC2Q5

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@Scriptwonder
Copy link
Collaborator

@dsarno Looks good to me! Let me know what you think on this.

@Scriptwonder Scriptwonder merged commit eabf727 into CoplayDev:master Aug 2, 2025
@msanatan msanatan deleted the fix-on-focus-config-check branch August 8, 2025 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants